﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace EmployeeProject
{
    class Program
    {
        static void Main(string[] args)
        {
            List<Employee> listEmployees =  new List<Employee>()
            {
                new Worker("Vasyan", 600),
                new Worker("Petyan", 250),
                new Worker("Mykola", 1500),
                new HourlyWorker("Andrii", 15, 25),
                new HourlyWorker("Antuan", 25, 50.5),
                new HourlyWorker("Eugene", 10, 3),
                new HourlyWorker("Hanna", 100, 24),
            };

            foreach (var employee in listEmployees)
            {
                employee.CalculateSalary();
                employee.PrintToConsole();
            }
    
        }
    }
}
